package com.itgt.classwork;

public class Chapters4_1 {

	public static void main(String[] args) {
		int temp;
		int []num = new int[]{23,45,13,47,5,98,5,32,34,54};
		for(int i=0;i<num.length-1;i++) {
			for(int j=0;j<num.length-1-i;j++) {
				//�͵���
				if(num[j]>num[j+1]) {
					temp = num[j];
					num[j] = num[j+1];
					num[j+1] = temp;
					
				}
			}
		}
		for(int i=0;i<num.length;i++) {
			System.out.print(" "+num[i]+" ");			
		}
		System.out.println();
		int Min = num[0];			
		int Max = num[9];			
		System.out.println("���"+Max);
		System.out.println("��С�� "+Min);
	}

}
